#ifndef _BLOOM_H
#define _BLOOM_H

/*$Id: bloom.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/
#ifdef __cplusplus
extern "C" {
#endif

struct bloom_context
{
	char * file;
	unsigned int size;
	unsigned char  *dat;
};

/*初始化*/
int bloom_starts(const char * file, int init, ssize_t size, struct bloom_context *ctx);
/*判判键是否已存在*/
int bloom_isexist(const char *str, int strlen, struct bloom_context *ctx);
/*写入文件*/
int bloom_finish(struct bloom_context * ctx);

#ifdef __cplusplus
}
#endif
#endif /*bloom.h*/

/*$Id: bloom.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/
